package net.mapper;

import net.pojo.Cart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author admin
 * @Date 2019/4/18 9:12
 */
public interface CartMapper {
    List<Cart> findByUid(Integer uid);
    int addCart(Cart cart);
    Cart findProductByCart(@Param(value = "pid") String pid, @Param(value = "uid")Integer uid);
    int updateQuantity(Cart cart);
    int deleteById(String pid);
    int deleteCartByUid(int id);
}
